import subprocess

#调用 tesseract.exe 程序
p=subprocess.Popen([r"C:\Program Files (x86)\Tesseract-OCR\tesseract.exe",r"F:\源码分析\crawlers\python3\selenium\4.png","last"],
                    stdout=subprocess.PIPE,stderr=subprocess.PIPE)

p.wait()
file=open("last.txt","r")
print(file.read())
